package com.common.project.common;

public enum  TimeBucket {
    /**
     * 小于一年
     */
    lessThanOneYear(1,0),
    /**
     * 一到三年
     */
    oneYearToThreeYear(3,0),
    /**
     * 三到五年
     */
    threeYearToFiveYear(5,0),
    /**
     * 五到十年
     */
    fiveYearToTenYear(10,0),
    /**
     * 十年以上
     */
    greateThanTenYear(10,0);

    /**
     * 年
     */
    private int nian;
    /**
     *  个数
     */
    private int count;

    TimeBucket(int nian, int percent) {
        this.nian=nian;
        this.count=percent;
    }

    public int getNian() {
        return nian;
    }

    public void setNian(int nian) {
        this.nian = nian;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
}
